package com.legal.aid.system.service;

import com.legal.aid.common.core.domain.entity.CommonUser;


public interface ISysCommonUserService {
    CommonUser selectUserByUserName(String username);

    boolean checkUserNameUnique(CommonUser commonUser);


    boolean registerCommonUser(CommonUser commonUser);

    /**
     * 更新用户信息
     *
     * @param commonUser 用户信息
     * @return 结果
     */
    boolean updateCommonUser(CommonUser commonUser);

    /**
     * 根据用户ID查询用户信息
     *
     * @param id 用户ID
     * @return 用户信息
     */
    CommonUser selectCommonUserById(Long id);
}
